package com.ebupt.migu.music.global.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ebupt.migu.globalpopup.entity.ActivityInfo;
import com.ebupt.migu.music.autoTri.Entity.PopupStatistics;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 活动信息表 Mapper 接口
 *
 * @author Blade
 * @since 2021 -11-17
 */
@Mapper
public interface RealTimeDataMapper extends BaseMapper<ActivityInfo> {

    /**
     * Count query integer.
     *
     * @param params the params
     * @return the integer
     */
    Integer countQuery(Map<String, Object> params);

    /**
     * Query map list.
     *
     * @param params the params
     * @return the list
     */
    List<Map<String, Object>> queryMinMap(Map<String, Object> params);

    /**
     * 全量导出查询
     * @param params
     * @return
     */
    List<HashMap<String, Object>> exportMinMap(Map<String, Object> params);


    /**
     * 可视化查询
     * @param params
     * @return
     */
    List<PopupStatistics> queryMinVisualViews(Map<String, Object> params);
}
